package com.wideplay.warp.remoting;

import java.lang.annotation.Annotation;

/**
 * Created by IntelliJ IDEA.
 * User: dprasanna
 * Date: 1/10/2007
 * Time: 16:03:40
 * <p/>
 *
 * Represents a "Remoting" scope. Which is basically a descriptor for a transport, host, port
 *  and remote service profile in general.
 *
 * @author dprasanna
 * @since 1.0
 */
class RemoteScopeDescriptor {
    private Transports transport;
    private Class<? extends Annotation> annotation;
    private String host;
    private int port;

    public RemoteScopeDescriptor(Transports transport, Class<? extends Annotation> annotation, String host, int port) {
        this.transport = transport;
        this.annotation = annotation;
        this.host = host;
        this.port = port;
    }


    public Transports getTransport() {
        return transport;
    }

    public Class<? extends Annotation> getAnnotation() {
        return annotation;
    }

    public String getHost() {
        return host;
    }

    public int getPort() {
        return port;
    }
}
